﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _06._01.CalSums
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.Write("Enter 'N': ");
            int N = int.Parse(Console.ReadLine());

            int result1 = 0;
            int result2 = 0;
            int result3 = 0;

            for (int i = 1; i <= N; i++)
            {
                result1 += i*i; // a)
                result2 += (i + 1) * (i + 1) - 2 * (i + 1); // b)
                result3 += (i + 2) * (i + 2) * (i + 2) - 3 * (i + 2); //c)
            }

            Console.WriteLine(result1);
            Console.WriteLine(result2);
            Console.WriteLine(result3);



            

        }
    }
}
